﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMS.Model;

namespace WMS.Repository.IRepository
{
    public interface IDepartmentRepository
    {
        Task<List<DepartmentModel>> GetDepartmentDropdownBoxAsync(long departmentId);
        Task<DepartmentModel> GetDepartmentNameAsync(string departmentName);

        Task<PageResult<DepartmentModel>> GetDepartmentPagedListAsync(DepartmentQueryRequest request);

        Task<string> GetDepartmentNameById(long id);

        Task<Dictionary<long, string>> GetDepartmentNamesBatchAsync(List<long> departmentIds);
    };

    /// <summary>
    /// 用户查询请求
    /// </summary>
    public class DepartmentQueryRequest : PageRequest
    {
        public string? DepartmentName { get; set; }
        public byte? Status { get; set; }
    }
}
